package org.loda.demo;

import org.loda.model.Request;
import org.loda.model.Response;
import org.loda.service.Filter;
import org.loda.service.FilterChain;

/**
 * 
* @ClassName: MessageFilter 
* @Description: 信息过滤器 
* @author minjun
*
 */
public class MessageFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response, FilterChain chain) {
		System.out.println("req:数据处理");
		request.setAttr("message", "处理了信息");
		chain.doFilter(request, response);
		System.out.println("resp:数据处理");
	}

}
